package cn.zysheep.decorator;

/**
 * @ClassName: Client
 * @Author: lyw
 * @Date: 2023/1/3 9:55
 * @Description: 装饰器模式
 */
public class Client {
    public static void main(String[] args) {


        IDecorator  save = new IDecorator(new SaveServiceImpl());

        IDecorator update = new IDecorator(new UpdateServiceImpl());

        save.doSurfing();
        update.doSurfing();

    }
}
